OtherPhysicalObjects Class Reference

#include <OtherPhysicalObjects.h>

Inheritance diagram for OtherPhysicalObjects:

PhysicsClient List of all members.

Public Member Functions

 OtherPhysicalObjects (TraffEduObject *object, char second, float third, float fourth, float height=0)
 OtherPhysicalObjects (TraffEduObject *object)
 ~OtherPhysicalObjects ()
int create (osg::ref_ptr< osg::PositionAttitudeTransform > transform)
double update (double step)
void odeDraw ()
dGeomID getGeomID ()
void setCollusion ()

Private Attributes

dGeomID geomID
dBodyID bodyID
Prism prismGeom
Cylinder cylinderGeom
string geomType
osg::ref_ptr< osg::Group > root
TraffEduObject * object

Detailed Description

Class which is inherited from PhysicsClient, define physical properties of objects other than vehicle for collusion detection


Constructor & Destructor Documentation

OtherPhysicalObjects::OtherPhysicalObjects (  TraffEduObject *  object,
char  second,
float  third,
float  fourth,
float  height = 0
) 
 

A constructor.

Parameters:
object a pointer to TraffEduObject which physical properties to be set.
second parameter is a char defining geom type of the object.
third parameter is a float argument for height.
fourth parameter is a float argument for widht.
height parameter is a float argument for lenght. defines the physical geom type of the object.

OtherPhysicalObjects::OtherPhysicalObjects (  TraffEduObject *  object  ) 
 

A constructor.

OtherPhysicalObjects::~OtherPhysicalObjects (   ) 
 

A destructor.


Member Function Documentation

int OtherPhysicalObjects::create (  osg::ref_ptr< osg::PositionAttitudeTransform >  transform  ) 
 

a normal member taking one argument and returning an integer value.

Parameters:
transform an osg::ref_ptr to osg::PositionAttitudeTransform.
Returns:
1 if succesful creates geom of the object in its physical space, set geom position and rotation according to osg::PositionAttitudeTransform of the object

dGeomID OtherPhysicalObjects::getGeomID (   )  [inline]
 

void OtherPhysicalObjects::odeDraw (   )  [virtual]
 

A pure virtual member.

Implements PhysicsClient.

void OtherPhysicalObjects::setCollusion (   )  [virtual]
 

a normal member.

Reimplemented from PhysicsClient.

double OtherPhysicalObjects::update (  double  step  )  [virtual]
 

a normal member taking one argument and returning a double.

Parameters:
step a double for world step amount.
Returns:
1 if succesful updates geom position and rotation at each worldstep

Implements PhysicsClient.


Member Data Documentation

dBodyID OtherPhysicalObjects::bodyID [private]
 

struct Cylinder OtherPhysicalObjects::cylinderGeom [private]
 

dGeomID OtherPhysicalObjects::geomID [private]
 

string OtherPhysicalObjects::geomType [private]
 

TraffEduObject* OtherPhysicalObjects::object [private]
 

struct Prism OtherPhysicalObjects::prismGeom [private]
 

osg::ref_ptr<osg::Group> OtherPhysicalObjects::root [private]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO